fix: resolve voice 1007 disconnect#66
Conversation
…eting
Replace sendClientContent({ turnComplete: true }) with
sendRealtimeInput({ text: " " }) to trigger the model's initial
greeting. The Gemini Live API rejects mixing sendClientContent with
sendRealtimeInput — they're different input modes, and audio was already
flowing via sendRealtimeInput when the clientContent message arrived.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis pull request fixes a voice session connectivity issue where sessions were immediately disconnecting with WebSocket error 1007. The fix modifies the greeting trigger in the Gemini Live hook to use 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
sendClientContent({ turnComplete: true })withsendRealtimeInput({ text: " " })to trigger the model's initial greetingsendClientContentwithsendRealtimeInput— they're different input modes, and audio was already flowing viasendRealtimeInputwhen theclientContentmessage arrived, causing an immediate WebSocket close with code 1007 "Request contains an invalid argument"Test plan